package com.vm.lib;

/**
 * Created by jhanbin on 10/11/2016.
 */

public class NativeWarpper {
	static {
		System.loadLibrary("CVFun");
	}
    public static native void YUV2RGBA(int width, int height, byte[] yuv, int[] rgba, int yuvCode);

	public static native void GetPolygonMask(int width, int height, int[] vertex, byte[] mask);

	public static native boolean CalibratePlane(float[] plane, byte[] depth16, float[] K, float[] D, byte[] mask, int width, int height);

	public static native boolean MeasureObject(float[] metric, byte[] depth16, float[] plane, float[] K, float[] D, byte[] mask, int width, int height, float heightCut, int pointNumberThreshold);

	public static native void DecodeAndSave(byte[] data, String path);
   
}
